<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

    <script>

        var arr = ['B', 'A', 'C']
        // arr.sort();对数组进行排序
        // console.log(arr);
        arr.reverse();//翻转数组
        console.log(arr);



    </script>


</body>

</html>